package com.example.sourcesprng.jdk17._record;

public record TestJDK17_Record(String name, int age) {

    private void test() {
        System.out.println(name + "||" + age);
    }

    public static void main(String[] args) {
        TestJDK17_Record record = new TestJDK17_Record("张三", 19);
        record.test();
        System.out.println(record.age());
    }


}
